<!DOCTYPE html>
<html lang="zn">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>复合选择器-伪类选择器</title>
  <style>
    span,
    div {
      font-size: 64px;
    }

    /* 鼠标悬停状态 */
    span:hover {
      color: #00f;
    }

    .red:hover {
      color: #f00;
    }
  </style>
</head>

<body>
  <span>腾讯网从2003年创立至今</span>
  <div class="red">腾讯网从2003年创立至今</div>
</body>

</html>